<?php
/*fileName: 
 *internal version: 0001
 *version : 1.0.0 [programming] [official version]
 *author : HeShengyu
 *Date : 2014.07.21 
 *email: koolfer@163.com
 *end date:2014.08.23
 *http://www.cnblogs.com/ssnowy/
*/
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 
<meta http-equiv="pragma" content="no-cach" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<title></title>
<style>
@font-face {
				font-family: 'inconsolata';
				src: url('../inc/inconsolata.woff') format('woff');
				font-weight: normal;
				font-style: normal;
			}

body {
	margin:0px;
	overflow :hidden;}
* , body ,div ,li,ol,span,a{font-family:'inconsolata','思源黑体 CN Light',Verdana, Geneva, sans-serif ; font-size:16px;}

div a{text-decoration: underline;} /*链接无下划线none,有为underline*/
div a:link {color: #06f;text-decoration: underline;} /*未访问的链接 */
div a:visited {color: #0033cc;text-decoration: underline;} /*已访问的链接*/
div a:hover{color: #ff3399;text-decoration: underline;} /*鼠标在链接上 */
div a:active {color: #cc9900;text-decoration: underline} /*点击激活链接*/
li{ color:#0033cc; list-style-type:none; margin-left:0px;}
#left .high{color:#dd00dd; font-size:16px;   }
#left .highx{color:#090; font-size:16px;   }

#idifr{  border:0px solid #ccc;
      border-radius:4 px;
-moz-border-radius:10px; 
-webkit-border-radius:10px; 
box-shadow:   0px 0px 4px 1px #999;
margin:10px; padding:4px;
 


} 
#idsrc li{ width:100px; padding:0px; margin:0px; float:left;
	}
#idsrc li img{
    border:0px solid #ccc;
      border-radius:4 px;
-moz-border-radius:4px; 
-webkit-border-radius:4px; 
box-shadow:   0px 0px 4px 1px #999;
margin:2px 10px; padding:2px;	
	}
#dy{
-webkit-transform: scaleY(-1); 
-moz-transform: scaleY(-1); 
-ms-transform: scaleY(-1); 
-o-transform: scaleY(-1); 
transform: scaleY(-1); 
opacity:0.5; 
filter:flipv alpha(opacity='50'); /*ALL IE*/ 
}
</style>
<script src="js/appname.js" language="javascript"></script>
<script>
appname.ready(function(){
	
	window.addEventListener('keyup',function(){
		 
	var event=window.event||arguments.callee.caller.arguments[0];
       // mkTrace(event.keyCode+':'+ String.fromCharCode(event.keyCode))
	if(event.keyCode==70){
	    CTRL.fullscreen( document.getElementById('idifr') );
	}
	if(event.keyCode===69){
		    CTRL.exitFullscreen()	
	}
	if(event.keyCode===82){
		    window.location.reload();	
	}		
	 document.getElementById('idifr').focus();
 
	},false);
	
	
	 
	document.getElementById('right').style.width= (parseInt(window.innerWidth)-400)+'px';
	window.addEventListener('resize',function(){
    document.getElementById('right').style.width=(parseInt(window.innerWidth)-400)+'px';
	console.log((parseInt(window.innerWidth)-450)+'px');
	},false);
	
	//设置视频的宽高
	window.setVideoH=function(h){
	    window._blankk.oPlayer.player().height=h;	
	}
	window.setVideoW=function(w){
	    window._blankk.oPlayer.player().width=w;	
	}
	 window.setVideoInfoWH=window.wh=function(w,h){
		 
	 window._blankk.window.videoInfo.width =  w ;
	 window._blankk.window.videoInfo.height = h ;	
	   window._blankk.window.PLAYER.changeVideoWidthAndHeight();
		 
	 }
	 window.player=function(){
	    return window._blankk.oPlayer.player();	 
		 
	 }
});
<?php

require_once 'appInc.php';
?>
</script>
</head>
<body>
 <div id='left' style=" overflow:scroll;width:400px; height:100%;  border:1px solid #ccc; margin:10px; overflow-y:auto; overflow-x:hidden; position: absolute; right:0px; top:0px; margin:0px;">
  
<ul>
<li ><a onClick="CTRL.fullscreen( document.getElementById('idifr') )" style="text-decoration:none;color:red;cursor:default;" >fullscreen</a></li>
 
 
 <?php
  

//把自己生成一个html文件
// generation_selfhtml(date('_Y-m-d H_',time())); 这里的生成不能有，会影响点击事件，并且会有两个影片播放
 
// generation_selfhtml(date('_Y-m-d H_',time()));
 $fn=new Clscandir(__FILE__);
 //
 $fils=$fn->getFiles_nomatch( "/(\.html|\.[0-9]+|index\.php|appInc\.php)$/");
 echo Clscandir::toUrl($fils,"_blankk");
 



function index_comFilePath2url($arr,$target='_blank'){
	    $ret='';
		foreach($arr as $v){
			$filename =  _completeFilePath2url($v);
			
		    $ret.= '<li><a href="'.$filename.'?r='.rand(1,9999999).'" title="'.$filename.'" target="'.$target.'">'
			.preg_replace('/(.{0,}?)([0-9a-zA-Z\-_\.\$]{0,})(html|php|htm|txt)$/','\\2\\3',$filename)
			.'</a></li>';	
 	
		}	
		return $ret;
	}
	
// $fn=new Clscandir(dirname(__FILE__).'/../AppTest/');
// //
// $fils=$fn->getCompleteFiles();	
//echo index_comFilePath2url($fils,"_blankk");
 
?>
</ul>
 </div>
 <div id="right" style="position:absolute; width:1470px; height:100%; border:1px solid #ccc; top:0px; left:0px;"> 
<iframe  id='idifr' name="_blankk" src="<?php echo _get_site_url(); ?>/videoPlayer/player/index_korean.php?" width="98%" height="90%" frameborder="0"></iframe>

  <div id="idsrc">
 
 <li> <a href="<?php echo _get_site_url(); ?>_App_/AppName/_VEX_NEWFX_Tara.php?r=<?php echo rand(1,9999999); ?>" target="_blankk" title="tara"><img src="<?php echo _get_site_url(); ?>/Img/tara.jpg" alt="tara" width="50" height="50"></a></li>
 
 <li> <a href="<?php echo _get_site_url(); ?>/_App_/AppName/_VEX_NEWFX.php?r=<?php echo rand(1,9999999); ?>" target="_blankk" title=""><img src="<?php echo _get_site_url(); ?>/Img/index001.jpg" alt="tara" width="50" height="50"></a></li>
 
 <li> <a href="<?php echo _get_site_url(); ?>_App_/AppName/_VEX_NEWFX_China.php?r=<?php echo rand(1,9999999); ?>" target="_blankk" title="tara"><img src="<?php echo _get_site_url(); ?>/Img/0001.jpg"  width="50" height="50"></a></li>
 
 <li> <a href="<?php echo _get_site_url(); ?>_App_/AppName/_VEX_NEWFX_YinYueTai.php?r=<?php echo rand(1,9999999); ?>" target="_blankk" title=""><img src="<?php echo _get_site_url(); ?>/Img/0002.jpg" alt="tara" width="50" height="50"></a></li>
 
 <li> <a href="<?php echo _get_site_url(); ?>_App_/AppName/_VIDEOSEX_subtitle_scanWord2.php?r=<?php echo rand(1,9999999); ?>" target="_blankk" title="scanWord"><img src="<?php echo _get_site_url(); ?>/Img/0003.jpg" alt="scanWord" width="50" height="50"></a></li>
 
 <li> <a href="<?php echo _get_site_url(); ?>_App_/$_x5Kiss_.html?r=<?php echo rand(1,9999999); ?>" target="_blankk" title="x5Kiss"><img src="<?php echo _get_site_url(); ?>/Img/0004.jpg" alt="tara" width="50" height="50"></a></li>
 
 <li> <a href="<?php echo _get_site_url(); ?>_App_/AppName/_VEX_cet4B.php?r=<?php echo rand(1,9999999); ?>" target="_blankk" title="_VEX_cet4B.php"><img src="<?php echo _get_site_url(); ?>/Img/0007.jpg" alt="tara" width="50" height="50"></a></li>
 
 <li> <a href="<?php echo _get_site_url(); ?>_App_/AppCdb/hide/?r=<?php echo rand(1,9999999); ?>" target="_blankk"><img src="<?php echo _get_site_url(); ?>/Img/tara.jpg" alt="tara" width="50" height="50"></a></li>
  
 </div>
 </div>

</body>
</html>